{% extends "base.html" %}

{%block title%}Wizyty{%endblock%}

{% block content %}
	<div id="content">
		<h2>Wizyta</h2>
		<table class="results">
			<tr>
				<th colspan="3">Wizyta <i>{{visit.date}}</i></th>
			</tr>
			<tr>
				<td width="25%">ID:</td>
				<td>{{visit.id}}</td>
			</tr>
			<tr>
				<td>Data:</td>
				<td>{{visit.date}}</td>
			</tr>
			<tr>
				<td>Pacjent:</td>
				<td>{{visit.profile}}</td>
			</tr>
			<tr>
				<td>Uwagi:</td>
				<td>{{visit.comment}}</td>
			</tr>
			<tr>
				<td>Zalecenia:</td>
				<td>{{visit.recommendation}}</td>
			</tr>
			<tr>
				<td class="ta-c" colspan="2">
					<form>
						<button type="submit" formaction="javascript:history.back()" class="m-t m-b">Wstecz</button>
						<button type="submit" onclick="window.print ();" class="m-l m-t m-b">Drukuj</button>
						<button type="submit" formaction="{%url visit-user visit.profile.id%}" class="m-l m-t m-b">Wizyty pacjenta {{visit.profile}}</button>
					</form>
				</td>
			</tr>
		</table>
	</div>
{% endblock %}
